import request from '@/utils/request'

// 查询电表信息列表
export function listMeter(query) {
  return request({
    url: '/zsw/meter/list',
    method: 'get',
    params: query
  })
}

// 查询电表信息详细
export function getMeter(meterId) {
  return request({
    url: '/zsw/meter/' + meterId,
    method: 'get'
  })
}

// 新增电表信息
export function addMeter(data) {
  return request({
    url: '/zsw/meter',
    method: 'post',
    data: data
  })
}

// 修改电表信息
export function updateMeter(data) {
  return request({
    url: '/zsw/meter',
    method: 'put',
    data: data
  })
}

// 删除电表信息
export function delMeter(meterId) {
  return request({
    url: '/zsw/meter/' + meterId,
    method: 'delete'
  })
}


export function mmlist(){
  return request({
    url: '/zsw/meter/mmlist',
    method: 'get'
  })
}